package org.spider.utils;

import org.springframework.context.EnvironmentAware;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

@Configuration
public class ConfigUtils implements EnvironmentAware {

    private static Environment env;

    public static String getValue(String key) {
        return env.getProperty(key);
    }

    @Override
    public void setEnvironment(Environment environment) {
        env = environment;
    }
}
